<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>hybridMPIC: __Detector Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">hybridMPIC
   </div>
   <div id="projectbrief">A fully relativisitic 2d Particle-In-Cell(PIC) code, with explicit solver, MPI&amp;OpenMP support</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="../../classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="../../functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">__Detector Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>detect particle information by some paramters, can set the detector position, size and energy detection range  
 <a href="../../d7/d3b/class____Detector.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../d5/d9f/detector_8h_source.html">detector.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for __Detector:</div>
<div class="dyncontent">
<div class="center"><img src="../../d1/dbc/class____Detector__coll__graph.png" border="0" usemap="#____Detector_coll__map" alt="Collaboration graph"/></div>
<map name="____Detector_coll__map" id="____Detector_coll__map">
<area shape="rect" id="node2" href="../../d6/d19/class____Ptclslist.html" title="一个同类粒子的粒子束，隶属于一个网格，也可以不是 " alt="" coords="91,371,173,398"/><area shape="rect" id="node4" href="../../d9/ddf/class____Ptcls.html" title="单个粒子类信息，可以是任何种类粒子 " alt="" coords="173,139,240,165"/><area shape="rect" id="node5" href="../../d6/d9c/class____Vect2.html" title="__Vect2\&lt; double \&gt;" alt="" coords="19,5,151,32"/><area shape="rect" id="node6" href="../../da/d1a/class____Vect3.html" title="__Vect3\&lt; double \&gt;" alt="" coords="175,5,307,32"/><area shape="rect" id="node8" href="../../d6/d9c/class____Vect2.html" title="__Vect2\&lt; int \&gt;" alt="" coords="307,244,415,271"/></map>
<center><span class="legend">[<a href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae0584bb75f0c366cec820cc939ca1634"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0584bb75f0c366cec820cc939ca1634"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>__Detector</b> (const int id, const int <a class="el" href="../../d7/d3b/class____Detector.html#af20ae6deadf80e54c7cfa32320267878">species</a>, const <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt; &amp;<a class="el" href="../../d7/d3b/class____Detector.html#a02385e95baafe7689317f37f0a6b4be9">ekrange</a>, const <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt; &amp;<a class="el" href="../../d7/d3b/class____Detector.html#a455f20e1913a2d8b1085a602774e59aa">xymin</a>, const <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt; &amp;xymax, const <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt; &amp;<a class="el" href="../../d7/d3b/class____Detector.html#ab6433e6cc87cc8c8bcec4c62074b57cd">dxy</a>)</td></tr>
<tr class="separator:ae0584bb75f0c366cec820cc939ca1634"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa39464466ecc5df1380dcefb4eb834d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa39464466ecc5df1380dcefb4eb834d4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#aa39464466ecc5df1380dcefb4eb834d4">init</a> (<a class="el" href="../../d9/d37/class____Simbox.html">__Simbox</a> &amp;mybox)</td></tr>
<tr class="memdesc:aa39464466ecc5df1380dcefb4eb834d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the simbox <br /></td></tr>
<tr class="separator:aa39464466ecc5df1380dcefb4eb834d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f965b667d2cb12b09dfc17169e69c34"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f965b667d2cb12b09dfc17169e69c34"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#a5f965b667d2cb12b09dfc17169e69c34">detect</a> (<a class="el" href="../../d9/d37/class____Simbox.html">__Simbox</a> &amp;mybox)</td></tr>
<tr class="memdesc:a5f965b667d2cb12b09dfc17169e69c34"><td class="mdescLeft">&#160;</td><td class="mdescRight">perform a detection <br /></td></tr>
<tr class="separator:a5f965b667d2cb12b09dfc17169e69c34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0443443a373f8843798b55cc55eaad24"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0443443a373f8843798b55cc55eaad24"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>destroy</b> ()</td></tr>
<tr class="separator:a0443443a373f8843798b55cc55eaad24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbc38f4f00ed309fe9af6e9e96663a18"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbc38f4f00ed309fe9af6e9e96663a18"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#acbc38f4f00ed309fe9af6e9e96663a18">reset</a> ()</td></tr>
<tr class="memdesc:acbc38f4f00ed309fe9af6e9e96663a18"><td class="mdescLeft">&#160;</td><td class="mdescRight">reset the detector <br /></td></tr>
<tr class="separator:acbc38f4f00ed309fe9af6e9e96663a18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a173e1ab4bdf189c927dc65e9d76b86ff"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a173e1ab4bdf189c927dc65e9d76b86ff"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#a173e1ab4bdf189c927dc65e9d76b86ff">myy</a> (const double &amp;x)</td></tr>
<tr class="memdesc:a173e1ab4bdf189c927dc65e9d76b86ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">line function of this detector surface <br /></td></tr>
<tr class="separator:a173e1ab4bdf189c927dc65e9d76b86ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90cd5fcc2463b932b78a1a89932fc090"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90cd5fcc2463b932b78a1a89932fc090"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#a90cd5fcc2463b932b78a1a89932fc090">is_near</a> (const <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt; &amp;posi)</td></tr>
<tr class="memdesc:a90cd5fcc2463b932b78a1a89932fc090"><td class="mdescLeft">&#160;</td><td class="mdescRight">return -1, 0, 1 3 types of near, 0: far, -1: near under, 1: near above <br /></td></tr>
<tr class="separator:a90cd5fcc2463b932b78a1a89932fc090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecb73e6c193aa710c91fa1672cfa5329"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aecb73e6c193aa710c91fa1672cfa5329"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>dump</b> (const int &amp;rank, const int &amp;n, string fname)</td></tr>
<tr class="separator:aecb73e6c193aa710c91fa1672cfa5329"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:aed4edc47fa75b9326ec29b73346684cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed4edc47fa75b9326ec29b73346684cd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>id</b></td></tr>
<tr class="separator:aed4edc47fa75b9326ec29b73346684cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af20ae6deadf80e54c7cfa32320267878"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af20ae6deadf80e54c7cfa32320267878"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#af20ae6deadf80e54c7cfa32320267878">species</a></td></tr>
<tr class="memdesc:af20ae6deadf80e54c7cfa32320267878"><td class="mdescLeft">&#160;</td><td class="mdescRight">capture which kind of particles <br /></td></tr>
<tr class="separator:af20ae6deadf80e54c7cfa32320267878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7b88caef7b358c38883d57f4b6bc49e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad7b88caef7b358c38883d57f4b6bc49e"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#ad7b88caef7b358c38883d57f4b6bc49e">delta_t</a></td></tr>
<tr class="memdesc:ad7b88caef7b358c38883d57f4b6bc49e"><td class="mdescLeft">&#160;</td><td class="mdescRight">time step of simualtion <br /></td></tr>
<tr class="separator:ad7b88caef7b358c38883d57f4b6bc49e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaad55e71f49011059a0e76318897b84b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaad55e71f49011059a0e76318897b84b"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#aaad55e71f49011059a0e76318897b84b">if_ek</a> = 0</td></tr>
<tr class="memdesc:aaad55e71f49011059a0e76318897b84b"><td class="mdescLeft">&#160;</td><td class="mdescRight">if detect by energy range <br /></td></tr>
<tr class="separator:aaad55e71f49011059a0e76318897b84b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02385e95baafe7689317f37f0a6b4be9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02385e95baafe7689317f37f0a6b4be9"></a>
<a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#a02385e95baafe7689317f37f0a6b4be9">ekrange</a></td></tr>
<tr class="memdesc:a02385e95baafe7689317f37f0a6b4be9"><td class="mdescLeft">&#160;</td><td class="mdescRight">energy range <br /></td></tr>
<tr class="separator:a02385e95baafe7689317f37f0a6b4be9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a455f20e1913a2d8b1085a602774e59aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a455f20e1913a2d8b1085a602774e59aa"></a>
<a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#a455f20e1913a2d8b1085a602774e59aa">xymin</a></td></tr>
<tr class="memdesc:a455f20e1913a2d8b1085a602774e59aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">spatial domain of detector box <br /></td></tr>
<tr class="separator:a455f20e1913a2d8b1085a602774e59aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b2b47dd7a3d13bc06b5b9ea7ad6d81b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b2b47dd7a3d13bc06b5b9ea7ad6d81b"></a>
<a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>xymax</b></td></tr>
<tr class="separator:a7b2b47dd7a3d13bc06b5b9ea7ad6d81b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0afa05a5a829c4dbbc2a1d6a89c380c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0afa05a5a829c4dbbc2a1d6a89c380c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#aa0afa05a5a829c4dbbc2a1d6a89c380c">front</a></td></tr>
<tr class="memdesc:aa0afa05a5a829c4dbbc2a1d6a89c380c"><td class="mdescLeft">&#160;</td><td class="mdescRight">face to which surface <br /></td></tr>
<tr class="separator:aa0afa05a5a829c4dbbc2a1d6a89c380c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6433e6cc87cc8c8bcec4c62074b57cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6433e6cc87cc8c8bcec4c62074b57cd"></a>
<a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#ab6433e6cc87cc8c8bcec4c62074b57cd">dxy</a></td></tr>
<tr class="memdesc:ab6433e6cc87cc8c8bcec4c62074b57cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">deltax of cell <br /></td></tr>
<tr class="separator:ab6433e6cc87cc8c8bcec4c62074b57cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a502055dd1b16f61c1779d94f3c711440"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a502055dd1b16f61c1779d94f3c711440"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d3b/class____Detector.html#a502055dd1b16f61c1779d94f3c711440">dir</a> = 0</td></tr>
<tr class="memdesc:a502055dd1b16f61c1779d94f3c711440"><td class="mdescLeft">&#160;</td><td class="mdescRight">along x, or y <br /></td></tr>
<tr class="separator:a502055dd1b16f61c1779d94f3c711440"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8eb8a463f0543c8d08697fe6f2d7e69"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8eb8a463f0543c8d08697fe6f2d7e69"></a>
vector&lt; <a class="el" href="../../d6/d9c/class____Vect2.html">__Vect2</a>&lt; int &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>cell_pos</b></td></tr>
<tr class="separator:af8eb8a463f0543c8d08697fe6f2d7e69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a127e6ca996a95eb0dabbb301df5faf87"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a127e6ca996a95eb0dabbb301df5faf87"></a>
<a class="el" href="../../d6/d19/class____Ptclslist.html">__Ptclslist</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mylist</b></td></tr>
<tr class="separator:a127e6ca996a95eb0dabbb301df5faf87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc74e097468951ea39c70039ee758f51"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adc74e097468951ea39c70039ee758f51"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>total</b></td></tr>
<tr class="separator:adc74e097468951ea39c70039ee758f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>detect particle information by some paramters, can set the detector position, size and energy detection range </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="../../d5/d9f/detector_8h_source.html">detector.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 16 2015 22:48:37 for hybridMPIC by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
